Crash Dumps

When debugging a native Win32 program, you can save a crash dump file for debugging at a later time, possibly on another machine. If you have just-in-time debugging enabled, you can save a crash dump even if the crash occurs while running outside of Visual Studio. A dialog box gives you the options of saving the crash dump or debugging immediately. Crash dumps can be especially useful if you are testing a program on a machine that does not have source files, PDBs, or Visual Studio installed.

The machine you debug the crash dump on must have access to the binaries for the program and the PDB files. Visual Studio can cope with missing binaries for some modules, however, as long as it has enough modules to generate valid call stacks. The message "No matching binary found" appears in the Modules window. (See Crash Dump Module Loading for details.)

Crash dumps can be useful if you are testing the program on a machine that does not have source files or PDBs installed. When the crash occurs, you can save a crash dump file and debug it later on the machine that has the source files and PDBs.

To save a crash dump file

To open a crash dump file

  1. From the File menu, choose Open and click File.
  2. In the Open File dialog box, locate and select the crash dump file. (It will have a .dmp extension.)
  3. Click OK.

In addition, Visual Studio can read crash dumps created by the Microsoft Office Doctor Watson utility or userdump.exe, as well as minidumps generated by minidump.dll version 42899 or higher.